//
//  MineController.m
//  jang
//
//  Created by lee han on 02/08/2017.
//  Copyright © 2017 lee han. All rights reserved.
//

#import "MineController.h"
#import "CommonView.h"
#import "OrderListController.h"

@interface MineController ()

@end

@implementation MineController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    [CommonView setNativationBar:self];
    [[UIBarButtonItem appearanceWhenContainedInInstancesOfClasses:@[[UINavigationBar class]]] setTitleTextAttributes:@{NSFontAttributeName: [UIFont systemFontOfSize:14]} forState:UIControlStateNormal];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/
- (IBAction)OnClickAddress:(id)sender {
    [self performSegueWithIdentifier:@"minetoadr" sender:self];
}

- (IBAction)OnClickUnPay:(id)sender {
    mType = OrderType_UnPayed;
    [self performSegueWithIdentifier:@"minetool" sender:self];
}

- (IBAction)OnClickSend:(id)sender {
    mType = OrderType_Sended;
    [self performSegueWithIdentifier:@"minetool" sender:self];
}

- (IBAction)OnClickComplate:(id)sender {
    mType = OrderType_Complate;
    [self performSegueWithIdentifier:@"minetool" sender:self];
}

- (IBAction)OnClickTrash:(id)sender {
    mType = OrderType_Invalid;
    [self performSegueWithIdentifier:@"minetool" sender:self];
}

- (void)prepareForSegue: (UIStoryboardSegue *)segue sender:(id)sender{
    OrderListController *destination = segue.destinationViewController;
    
    destination.mType = (int)mType;
}
@end
